using Microsoft.EntityFrameworkCore;
namespace BMC.Models;

public class BookDbContext : DbContext
{
   public DbSet<Book>Books{get;set;}=null!;
   protected override void OnConfiguring(DbContextOptionsBuilder dbcob){
    base.OnConfiguring(dbcob);
    var constring=$"server=.\\SQLEXPRESS;database=BMC;uid=sa;pwd=123456;TrustServerCertificate=true;";
    dbcob.UseSqlServer(constring);
   }
}